package com.lnking.lnkingplace.model.request.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author 联坤
 */
@Data
public class UserUpdateRequest extends BaseEntity {

    @ApiModelProperty("名字")
    private String name;

    @ApiModelProperty("电话")
    @Pattern(regexp = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[0-9])|(16[0-9])|(18[0-9])|(19[0-9]))\\d{8}$", message = "电话格式不正确")
    private String phone;

    @ApiModelProperty("类型")
    private String type;

    @ApiModelProperty("身份证号码")
    private String idCard;

    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("籍贯")
    private String nativePlace;

    @ApiModelProperty("现居地址")
    private String address;

    @ApiModelProperty("入职时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate entryTime;

    @ApiModelProperty("场所Id")
    private String placeId;

    @ApiModelProperty("学历")
    private String education;

    @ApiModelProperty("紧急联系人")
    private String urgentName;
    /**
     * 紧急联系人：联系方式
     */
    @ApiModelProperty("紧急联系人联系方式")
    private String urgentPhone;


    @ApiModelProperty("有无重大疾病史")
    private String disease;

    @ApiModelProperty("证件")
    private String  photos;

    @ApiModelProperty("是否在岗")
    private String  onDuty;
}
